package com.base.kongjian.dao;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Component;

import com.base.kongjian.entity.PopularitySystem;

@Component("popularitySystemDao")
public interface PopularitySystemDao
{
	
	/**
	 * 保存
	 * @param popularitySystem
	 */
	void save(PopularitySystem popularitySystem);
	/**
	 * 删除
	 * @param memberId
	 */
	void delete(long memberId);
	/**
	 * 更新
	 * @param popularitySystem
	 */
	void update(PopularitySystem popularitySystem);
	/**
	 * 取值 通过会员ID
	 * @param memberId
	 * @return
	 */
	PopularitySystem getByMemberId(long memberId);
	/**
	 *取值通过ID 
	 * @param id
	 * @return
	 */
	PopularitySystem getById(long id);
	/**
	 * 多查询
	 * @param params
	 * @return
	 */
	List<Long> query(Map<String, Object> params);
	/**
	 * 统计
	 * @param params
	 * @return
	 */
	int count(Map<String, Object> params);
}
